package com.xdxc.emuns;

public enum ThreadPoolType {
    EXAM_SERVICE(4, 8, 60, "订单服务"),
    GRADING_SERVICE(2, 4, 30, "支付服务"),
    SPIKES_SERVICE(4, 4, 60, "库存服务"),
    QUESTION_SERVICE(1, 2, 10, "日志服务"); // 低优先级任务

    public final int corePoolSize;
    public final int maxPoolSize;
    public final int queueCapacity;
    final String desc;

    // 构造函数
    ThreadPoolType(int corePoolSize, int maxPoolSize, int queueCapacity, String desc) {
        this.corePoolSize = corePoolSize;
        this.maxPoolSize = maxPoolSize;
        this.queueCapacity = queueCapacity;
        this.desc = desc;
    }
}